package com.supermarket.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单支付信息实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class OrderPayment implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 支付ID
     */
    private Integer id;

    /**
     * 订单ID
     */
    private Integer orderId;

    /**
     * 支付流水号
     */
    private String paymentNo;

    /**
     * 支付平台：ALIPAY-支付宝，WECHAT-微信，OTHER-其他
     */
    private String paymentPlatform;

    /**
     * 支付金额
     */
    private BigDecimal paymentAmount;

    /**
     * 支付状态：PENDING-待支付，SUCCESS-支付成功，FAILED-支付失败，REFUND-已退款
     */
    private String paymentStatus;

    /**
     * 支付时间
     */
    private Date paymentTime;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;
} 